package com.java.action;

import javax.servlet.http.HttpServletRequest;


import com.java.pojo.ComRole;
import com.java.service.IRoleService;
import com.opensymphony.xwork2.ActionSupport;

public class AddRoleAction extends ActionSupport{
	
	private IRoleService roleservice;
	private ComRole role;
	private int message;
	
	public int getMessage() {
		return message;
	}
	public String execute(){
		message=1;
		System.out.println(role.getRName());
		System.out.println(role.getRType());
		System.out.println(role.getRRw());
		roleservice.addRoleLog(role);
		
		
		return SUCCESS;
	}
	public ComRole getRole() {
		return role;
	}
	public void setRoleservice(IRoleService roleservice) {
		this.roleservice = roleservice;
	}
	public void setRole(ComRole role) {
		this.role = role;
	}
}
